<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 1000px;
            height:300px;
            /* background-image: linear-gradient(45deg,red 25%,blue 25%,blue 50%,red 50%,red 75%); */
            background: linear-gradient(
                45deg,rgba(255,255,255,.75) 25%,transparent 25%,transparent 50%, rgba(255,255,255,.75) 50%,rgba(255,255,255,.75) 75%,transparent 75%) no-repeat;
            background-size: 60px 60px;
            background-color: green;

            background: linear-gradient(to top,rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 40%, rgba(0,0,0,.001),rgba(0,0,0,.001));
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>